package com.ruoyi.deeplearn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.deeplearn.mapper.DeepModelSampleTaskMapper;
import com.ruoyi.deeplearn.domain.DeepModelSampleTask;
import com.ruoyi.deeplearn.service.IDeepModelSampleTaskService;

/**
 * 模型样本Service业务层处理
 * 
 * @author rww
 * @date 2024-09-07
 */
@Service
public class DeepModelSampleTaskServiceImpl implements IDeepModelSampleTaskService 
{
    @Autowired
    private DeepModelSampleTaskMapper deepModelSampleTaskMapper;

    /**
     * 查询模型样本
     * 
     * @param id 模型样本主键
     * @return 模型样本
     */
    @Override
    public DeepModelSampleTask selectDeepModelSampleTaskById(Long id)
    {
        return deepModelSampleTaskMapper.selectDeepModelSampleTaskById(id);
    }

    /**
     * 查询模型样本列表
     * 
     * @param deepModelSampleTask 模型样本
     * @return 模型样本
     */
    @Override
    public List<DeepModelSampleTask> selectDeepModelSampleTaskList(DeepModelSampleTask deepModelSampleTask)
    {
        return deepModelSampleTaskMapper.selectDeepModelSampleTaskList(deepModelSampleTask);
    }

    /**
     * 新增模型样本
     * 
     * @param deepModelSampleTask 模型样本
     * @return 结果
     */
    @Override
    public int insertDeepModelSampleTask(DeepModelSampleTask deepModelSampleTask)
    {
        return deepModelSampleTaskMapper.insertDeepModelSampleTask(deepModelSampleTask);
    }

    /**
     * 修改模型样本
     * 
     * @param deepModelSampleTask 模型样本
     * @return 结果
     */
    @Override
    public int updateDeepModelSampleTask(DeepModelSampleTask deepModelSampleTask)
    {
        return deepModelSampleTaskMapper.updateDeepModelSampleTask(deepModelSampleTask);
    }

    /**
     * 批量删除模型样本
     * 
     * @param ids 需要删除的模型样本主键
     * @return 结果
     */
    @Override
    public int deleteDeepModelSampleTaskByIds(Long[] ids)
    {
        return deepModelSampleTaskMapper.deleteDeepModelSampleTaskByIds(ids);
    }

    /**
     * 删除模型样本信息
     * 
     * @param id 模型样本主键
     * @return 结果
     */
    @Override
    public int deleteDeepModelSampleTaskById(Long id)
    {
        return deepModelSampleTaskMapper.deleteDeepModelSampleTaskById(id);
    }
}
